import request from '@/utils/request'

// 查询dinnertable列表
export function listDinnertable(query) {
  return request({
    url: '/dinnertable/list',
    method: 'get',
    params: query
  })
}

// 分页查询dinnertable列表
export function listDinnertableByPage(query) {
  return request({
    url: '/dinnertable/page',
    method: 'get',
    params: query
  })
}

// 查询dinnertable
export function getDinnertable(id) {
  return request({
    url: '/dinnertable/' + id,
    method: 'get'
  })
}

// 新增dinnertable
export function addDinnertable(data) {
  return request({
    url: '/dinnertable',
    method: 'post',
    data: data
  })
}

// 修改dinnertable
export function updateDinnertable(data) {
  return request({
    url: '/dinnertable',
    method: 'put',
    data: data
  })
}

// 删除dinnertable
export function deleteDinnertable(id) {
  return request({
    url: '/dinnertable/delete/' + id,
    method: 'delete'
  })
}
